package cn.edu.hunau.pojo;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author 苏佳
 * @Date
 **/
public class Order {
    private String id; //订单编号
    private double account;  //订单总金额
    private LocalDateTime dotime;
    private String ostate;

    // 关系属性
    private User user;
    private Address address;

    private List<OrderItem> items;



    public List<OrderItem> getItems() {
        return items;
    }

    public void setItems(List<OrderItem> items) {
        this.items = items;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public double getAccount() {
        return account;
    }

    public void setAccount(double account) {
        this.account = account;
    }


    public LocalDateTime getDotime() {
        return dotime;
    }

    public void setDotime(LocalDateTime dotime) {
        this.dotime = dotime;
    }

    public String getOstate() {
        return ostate;
    }

    public void setOstate(String ostate) {
        this.ostate = ostate;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }
}
